I am trying to access the value of div whose id is second
<div id='container'>
<div id='first'>HI</div>
<div id='second'>Mindstick</div>
<div id='third'>Software</div>
</div>
home / developersection / forums / jquery get value within child div
I am trying to access the value of div whose id is second
<div id='container'>
<div id='first'>HI</div>
<div id='second'>Mindstick</div>
<div id='third'>Software</div>
</div>
Anonymous User
25-Mar-2018//To get the textual contents of a container, you need to use text() (or html(), var text_val = $('#second').text();or var text_val = $('#container').children('#second').text();
hope this will helps you..